<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title></title>
  </head>
  <body>
    <div id="app">
      <btn-a>
        <template slot="aa"><h1>标题</h1></template>
        <template slot="bb"><section>内容</section></template>
        <template><div>结尾</div></template>
      </btn-a>
      
    </div>
    <script src="./vue.js"></script>
    <script>
      const vm = new Vue({
        el: "#app",
        data: {},
        methods: {},
        components:{
          "btn-a":{
            template:`<div><slot name="aa"></slot><slot name="bb"></slot><slot></slot></div>`,
          }
        }
      });
    </script>
  </body>
</html>
